home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-09-02 | 631 b | 40 lines | [TEXT/CCL2] |
- ; Simple LFG grammar
- ; A very simple LFG-style grammar using a direct encoding of
- ; grammatical relations. Try (p Kim gave Sandy a book)
-
- #[
- category-prefix = cat. ; paths to category label
- value-prefix = head.
-
- start-category := cat(**) = S.
-
- restrictor := cat(**) = _.
-
- ;;; Lexical items.
-
- Kim NP: pred(*) = Kim.
- Sandy NP: pred(*) = Sandy.
-
- book N: pred(*) = book.
-
- a Det: spec(*) = -.
-
- gave V: pred(*) = give.
-
- ;;; Grammar rules.
-
- S --> NP VP:
- *0 = *2,
- subj(*0) = *1.
-
- VP --> V NP NP:
- *0 = *1,
- obj(*0) = *2,
- obj2(*0) = *3.
-
- NP --> Det N:
- *0 = *1,
- *0 = *2.
-
- #]
-